<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <title>Installation &mdash; Swagger-PHP documentation</title>

  <link rel="stylesheet" href="static/pyramid.css" type="text/css" />
  <link rel="stylesheet" href="static/pygments.css" type="text/css" />

  <script type="text/javascript">
    var DOCUMENTATION_OPTIONS = {
      URL_ROOT: './',
      VERSION: '',
      COLLAPSE_INDEX: false,
      FILE_SUFFIX: '.html',
      HAS_SOURCE: true
    };
  </script>
  <script type="text/javascript" src="static/jquery.js"></script>
  <script type="text/javascript" src="static/underscore.js"></script>
  <script type="text/javascript" src="static/doctools.js"></script>
  <link rel="top" title="Swagger-PHP  documentation" href="welcome.html" />
  <link rel="next" title="Using Swagger-PHP" href="using_swagger.html" />
  <link rel="prev" title="Welcome to Swagger-PHP’s documentation!" href="welcome.html" />
  <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Neuton&amp;subset=latin" type="text/css" media="screen"
    charset="utf-8" />
  <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Nobile:regular,italic,bold,bolditalic&amp;subset=latin"
    type="text/css" media="screen" charset="utf-8" />
  <!--[if lte IE 6]>
<link rel="stylesheet" href="static/ie6.css" type="text/css" media="screen" charset="utf-8" />
<![endif]-->

</head>

<body>

  <div class="related">
    <h3>Navigation</h3>
    <ul>
      <li class="right" style="margin-right: 10px">
        <a href="using_swagger.html" title="Using Swagger-PHP" accesskey="N">next</a>
      </li>
      <li class="right">
        <a href="welcome.html" title="Welcome to Swagger-PHP’s documentation!" accesskey="P">previous</a> |</li>
      <li>
        <a href="welcome.html">Swagger-PHP documentation</a> &raquo;</li>
    </ul>
  </div>

  <div class="document">
    <div class="documentwrapper">
      <div class="bodywrapper">
        <div class="body">

          <div class="section" id="installation">
            <h1>Installation
              <a class="headerlink" href="#installation" title="Permalink to this headline">¶</a>
            </h1>
            <div class="admonition note">
              <p class="first admonition-title">Note</p>
              <p class="last">This is the documentation for (older / unsupported) swagger-php v1.x
                <br>Go to the
                <a href="../">swagger-php v3.x documentation</a>
              </p>
            </div>
            <div class="section" id="via-composer-recommended">
              <h2>Via Composer (Recommended)
                <a class="headerlink" href="#via-composer-recommended" title="Permalink to this headline">¶</a>
              </h2>
              <p>First download and install
                <a class="reference external" href="http://getcomposer.org">Composer</a> add zircote/swagger-php to your
                <em>composer.json</em>
              </p>
              <div class="highlight-javascript">
                <div class="highlight">
                  <pre><span class="s2">&quot;require&quot;</span><span class="o">:</span> <span class="p">{</span>
    <span class="s2">&quot;zircote/swagger-php&quot;</span><span class="o">:</span> <span class="s2">&quot;*&quot;</span>
<span class="p">}</span>
</pre>
                </div>
              </div>
              <dl class="docutils">
                <dt>Finally run
                  <em>composer install</em> to update the composer dependencies and implement the
                  <em>vendor/autoload.php</em> in your</dt>
                <dd>projects bootstrap.</dd>
              </dl>
            </div>
            <div class="section" id="via-phar">
              <h2>Via Phar
                <a class="headerlink" href="#via-phar" title="Permalink to this headline">¶</a>
              </h2>
              <p>Download the latest
                <a class="reference external" href="https://github.com/zircote/swagger-php/raw/master/swagger.phar">swagger.phar</a>
              </p>
              <div class="highlight-bash">
                <div class="highlight">
                  <pre>% php swagger.phar --help
</pre>
                </div>
              </div>
            </div>
            <div class="section" id="manual-unsupported">
              <h2>Manual (Unsupported)
                <a class="headerlink" href="#manual-unsupported" title="Permalink to this headline">¶</a>
              </h2>
              <p>Download/clone the source from
                <a class="reference external" href="https://github.com/zircote/swagger-php/">GitHub</a>, install
                <a class="reference external" href="http://www.doctrine-project.org/projects/common.html">Doctrine Annotations</a> and configure a PSR compatible class loader.</p>
            </div>
          </div>


        </div>
      </div>
    </div>
    <div class="sphinxsidebar">
      <div class="sphinxsidebarwrapper">
        <h3>
          <a href="welcome.html">Table Of Contents</a>
        </h3>
        <ul>
          <li>
            <a class="reference internal" href="#">Installation</a>
            <ul>
              <li>
                <a class="reference internal" href="#via-composer-recommended">Via Composer (Recommended)</a>
              </li>
              <li>
                <a class="reference internal" href="#via-phar">Via Phar</a>
              </li>
              <li>
                <a class="reference internal" href="#manual-unsupported">Manual (Unsupported)</a>
              </li>
            </ul>
          </li>
        </ul>

        <h4>Previous topic</h4>
        <p class="topless">
          <a href="welcome.html" title="previous chapter">Welcome to Swagger-PHP&#8217;s documentation!</a>
        </p>
        <h4>Next topic</h4>
        <p class="topless">
          <a href="using_swagger.html" title="next chapter">Using Swagger-PHP</a>
        </p>
        <div id="searchbox" style="display: none">
          <h3>Quick search</h3>
          <form class="search" action="search.html" method="get">
            <input type="text" name="q" />
            <input type="submit" value="Go" />
            <input type="hidden" name="check_keywords" value="yes" />
            <input type="hidden" name="area" value="default" />
          </form>
          <p class="searchtip" style="font-size: 90%">
            Enter search terms or a module, class or function name.
          </p>
        </div>
        <script type="text/javascript">$('#searchbox').show(0);</script>
      </div>
    </div>
    <div class="clearer"></div>
  </div>
  <div class="related">
    <h3>Navigation</h3>
    <ul>
      <li class="right" style="margin-right: 10px">
        <a href="using_swagger.html" title="Using Swagger-PHP">next</a>
      </li>
      <li class="right">
        <a href="welcome.html" title="Welcome to Swagger-PHP’s documentation!">previous</a> |</li>
      <li>
        <a href="welcome.html">Swagger-PHP documentation</a> &raquo;</li>
    </ul>
  </div>
  <div class="footer">
    &copy; Copyright 2014, Robert Allen &amp; Bob Fanger. Created using
    <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
  </div>
</body>

</html>